home *** CD-ROM | disk | FTP | other *** search
- 10000 '----------ROWCOL.BAS - sample row-column sum instructions-----------
- 10010 ON ERROR GOTO 5000 'this prevents disabling of error trapping
- 10020 NROW0=FNV(2,6):NCOL0=FNV(3,6):NROW=FNV(4,6):NCOL=FNV(5,6) 'read table
- 10030 GOSUB 9630 'form sums
- 10040 I=NROW0+NROW: J=NCOL0-1: X$="Column Totals" : GOSUB 9920 'label row
- 10050 I=NROW0-2: J=NCOL0+NCOL: X$="Row Totals" : GOSUB 9920 'label col
- 10060 GOTO 460 'this exits to the View Function
- W0-2: J=NCOL0+NCOL: X$="Row Totals" : GOSUB 9920 'label col
- 10060 GOTO 460 'this exits to the